package ooday05;

public class StaticFinalDemo {
    public static void main(String[] args) {
        System.out.println(Loo.PI);
        //Loo.PI=3.141;  //编译错误，常量不能被改变 789 
        System.out.println(Loo.num);
        System.out.println(Loo.COUNT);
    }
}
class Loo{
    public static int num=5;
    public static final int COUNT=5;
    public static final double PI=3.14;
    //public static final double PI;//编译错误，常量必须声明同时初始化
}